package cn.xuchunh.dragdismiss;

import android.app.Activity;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class MainActivity extends Activity {

    private CircularRevealView revealView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        revealView = (CircularRevealView) findViewById(R.id.reveal_view);

    }

    public void reveal(View view){
        revealView.reveal((int)view.getX(), (int)view.getY(), Color.parseColor("#ffff00"), null);
    }


}
